body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

.w-full {
  width: 100%;
}

.w-screen {
  width: 100vw;
}

.h-full {
  height: 100%;
}
.h-screen {
  height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}
.flex-1 {
  flex: 1;
}

.relative {
  position: relative;
}

.upload {
  width: 200px;
  display: flex;
  align-items: center;
  .upload-button {
    margin-left: 10px;
  }
}
.pdf-viewer {
  overflow-y: auto;
  background-color: #f5f5f5;
  padding: 20px;
}

.textLayer {
  opacity: 0.2;
  line-height: 1;
}

.textLayer span {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0% 0%;
}

.textLayer .highlight {
  margin: -1px;
  padding: 1px;
  background-color: rgb(180, 0, 170);
  border-radius: 4px;
}

.textLayer .highlight.begin {
  border-radius: 4px 0px 0px 4px;
}

.textLayer .highlight.end {
  border-radius: 0px 4px 4px 0px;
}

.textLayer .highlight.middle {
  border-radius: 0px;
}

.textLayer .highlight.selected {
  background-color: rgb(0, 100, 0);
}

.textLayer ::selection {
  background: rgba(0, 0, 255, 0.3);
}

.textLayer .endOfContent {
  display: block;
  position: absolute;
  left: 0px;
  top: 100%;
  right: 0px;
  bottom: 0px;
  z-index: -1;
  cursor: default;
  user-select: none;
}

.textLayer .endOfContent.active {
  top: 0px;
}

.annotation-highlight {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  border-radius: 2px;
}

/* 添加悬停效果，当鼠标悬停在高亮区域上时显示更明显的效果 */
.annotation-highlight:hover {
  opacity: 0.5 !important;
}

.annotation-text {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background-color: #f1f1f1;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}
